package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.system.annotation.FieldDescription;
import com.ruoyi.system.annotation.NeedOperate;
import com.ruoyi.system.annotation.ViewEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author LiSiPing
 * @since 2025-02-17
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Favorites implements Serializable {

    private static final long serialVersionUID = 1L;

    @FieldDescription(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @FieldDescription(value = "用户id")
    @ViewEntity
    @NeedOperate
    private Long userId;

    @FieldDescription(value = "add_wechatapp的id")
    @ViewEntity
    @NeedOperate
    private Long addId;

    @FieldDescription(value = "备注")
    @ViewEntity
    private String description;

    @TableField(fill = FieldFill.INSERT)
    @FieldDescription(value = "创建时间")
    private Date createTime;

    @FieldDescription(value = "创建人")
    private String createBy;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @FieldDescription(value = "修改时间")
    private Date updateTime;

    @FieldDescription(value = "修改人")
    private String updateBy;

    @FieldDescription(value = "逻辑删除")
    private Boolean deleteFlag;

    @TableField(exist = false)
    private Integer current;

    @TableField(exist = false)
    private Integer size;

    @TableField(exist = false)
    private AddWechat addWechat;

}
